<script setup lang="ts">
import { parseMdToHtml } from "@util/showdown"

const showHtml = ref("")
const parseToHtml = (val: string) => {
  showHtml.value = parseMdToHtml(val)
  console.log(showHtml.value);
}
</script>

<template>
  <div class="page-index w-screen h-screen center overflow-hidden">
    <Edit class="flex-1 " @parseToHtml="parseToHtml" />
    <Show class="flex-1 " :content="showHtml" />
    <CopyUtil />
  </div>
</template>

